import dayjs from 'dayjs'

export function formatData(date: string, format = 'YYYY-MM-DD') {
  return dayjs(date).format(format)
}

export function getDiffDay(startDate: string, endDate: string) {
  return dayjs(endDate).diff(startDate, 'day')
}

export function fomatMounth(data: string) {
  return dayjs(data).format('MM-DD')
}
